Skip to content

feat(telemetry): add IAM telemetry #7830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: feature/flare-mega
Choose a base branch
from

Conversation

yuxianrz
Copy link

@yuxianrz yuxianrz commented Aug 6, 2025

Problem

IAM credentials does not fit into current SSO telemetry metrics

Solution

Add IAM specific telemetry metric emission.


  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@yuxianrz yuxianrz requested a review from a team as a code owner August 6, 2025 18:45
Copy link

github-actions bot commented Aug 6, 2025

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.
  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

if (!AuthUtil.instance.isSsoSession()) {
telemetry.amazonq_messageResponseError.emit({
result: 'Failed',
cwsprChatConversationType: 'Chat',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we name this to inlineChat instead of generic Chat ?

Copy link
Author

@yuxianrz yuxianrz Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only reason I didn't change that is in aws-toolkit-common, cwprChatConversationType is defined as such:

{
"name": "cwsprChatConversationType",
"type": "string",
"allowedValues": [
"Chat",
"Assign",
"Transform",
"AgenticChat",
"AgenticChatWithToolUse"
],
"description": "Identifies the type of conversation"
},

Chat might be the most suitable value here. If I can make a PR to change this type in commonDefinition, I will add inlineChat and change the code here as well.

@liramon1 liramon1 force-pushed the feature/telemetry branch from 6b7a928 to cd42ede Compare August 6, 2025 19:27
@yuxianrz yuxianrz requested a review from laileni-aws August 6, 2025 20:51
@yuxianrz yuxianrz force-pushed the feature/telemetry branch from 505cd41 to e68c63c Compare August 7, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants